package com.xunce.xcworkservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @className:  AccountRoles
 * @author:     yanlong.guo
 * @date:       2023/12/15 17:47
 */

@Schema(description="用户和角色关联表")
@Data
@TableName(value = "account_roles")
public class AccountRoles {
    /**
     * 主键ID，唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description="主键ID，唯一标识")
    private Integer id;

    /**
     * account表中的主键
     */
    @TableField(value = "account_id")
    @Schema(description="account表中的主键")
    private Integer accountId;

    /**
     * roles表中的主键
     */
    @TableField(value = "role_id")
    @Schema(description="roles表中的主键")
    private Integer roleId;
}